<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String menu=(String)request.getAttribute("menu");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>粮油集团办公自动化协作平台</title>
    <metahttp-equiv="X-UA-Compatible" content="IE=8" />
    <link rel="stylesheet" type="text/css" href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
 	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
    
	<style type="text/css">
	html, body {
        font:normal 12px verdana;
        margin:0;
        padding:0;
        border:0 none;
        overflow:hidden;
        height:100%;
    }
	p {
	    margin:5px;
	}
    .settings {
        background-image:url(<%=basePath %>ajaxFramework/ext-2.1/shared/icons/fam/folder_wrench.png);
    }
    .nav {
        background-image:url(<%=basePath %>ajaxFramework/ext-2.1/shared/icons/fam/folder_go.png);
    }
    .cog {
        background-image:url(<%=basePath %>ajaxFramework/ext-2.1/shared/icons/fam/cog_edit.png) !important;
    }
    .user_edit {
        background-image:url(<%=basePath %>ajaxFramework/ext-2.1/shared/icons/fam/user_edit.png) !important;
    }
    .gray {
        background-image:url(<%=basePath %>ajaxFramework/ext-2.1/shared/icons/fam/user_gray.png) !important;
    }
    .plugin_add {
        background-image:url(<%=basePath %>ajaxFramework/ext-2.1/shared/icons/fam/plugin_add.gif) !important;
    }
    .table_refresh {
        background-image:url(<%=basePath %>ajaxFramework/ext-2.1/shared/icons/fam/table_refresh.png) !important;
    }
    .mail {
        background-image:url(<%=basePath %>ajaxFramework/ext-2.1/shared/icons/fam/mail.png) !important;
    }


	/* 手动添加 */
	
	.f a{
	color:#000; font-size:12px;
	}
	.f a:link{
	text-decoration:none;
	}
	.f a:visited{
	text-decoration:none;
	}
	.f a:hover{
	text-decoration:underline;
	}
	.f a:active{
	text-decoration:none;
	}

    </style>
    
    <script type="text/javascript">

    Ext.onReady(function(){

        Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
        
       var viewport = new Ext.Viewport({
            layout:'border',
            items:[
				{
                    region:'west',
                    id:'west-panel',
                    title:'<font color="white">栏目导航</font>',
                    split:false,
                    width: 165,
                    minSize: 175,
                    maxSize: 400,
                    collapsible: false,
                    margins:'8 45 8 5',
                    layout:'accordion',
                    layoutConfig:{
                        animate:false
                },
                items: [
                <%=menu %>
				]
                },
                new Ext.BoxComponent({ // raw
                    region:'center',
                    el: 'center',
                    height:60
                })
             ]
        });
    });
	</script>
  </head>
  
  <body>

  <div id="west">
  </div>
  <div id="center">
  </div>
  </body>
</html>
